home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10721 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: maple.sover.net!mountain
  2. From: mountain@maple.sover.net (Steve Mount)
  3. Newsgroups: comp.unix.questions,comp.lang.c
  4. Subject: Re: Bold ASCII
  5. Followup-To: comp.unix.questions,comp.lang.c
  6. Date: 19 Mar 1996 16:57:49 GMT
  7. Organization: SoVerNet, Inc.
  8. Message-ID: <4imp2d$mu@thrush.sover.net>
  9. References: <4i7cpj$hqa@nexen.nexen.com>
  10. NNTP-Posting-Host: maple.sover.net
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Matthew B. Doar (mdoar@acton.timeplex.com) wrote:
  14. : Anyone know how to get bold strings of text
  15. : from a program (termcap related?)
  16.  
  17. : e.g.
  18.  
  19. : printf("\012 This is in bold \013\n");
  20.  
  21. : where \012 and \013 are whatever the magic ascii values 
  22. : are to turn on and off bold. 
  23.  
  24. I think you want the tparm function.  The on ID is "enter_bold_mode",
  25. the off is "exit_attribute_mode" (turns off all attributes).  Check the 
  26. man page on tparm.
  27.  
  28. +============================================================================+
  29. | Steve Mount, Software Engineer            Work: sjjm@hawkeye.idx.com       |
  30. | CIS: 73720,3404  MSN: S_Mountain          Home: mountain@sover.net         |
  31. | AOL: Mountain                                                              |
  32. | WWW: http://www.sover.net/~mountain/      "Fight, Win, Prevail!"           |
  33. +============================================================================+
  34.